package com.ruoyi.project.ypjxc.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

public class Supplier extends BaseEntity {
    private Long supplierId;
    private String supplierName;
    private String supplierLinkman;
    private String supplierPhone;
    private String supplierTelephone;
    private String supplierBanknum;
    private String supplierAddress;
    private String status;

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierLinkman() {
        return supplierLinkman;
    }

    public void setSupplierLinkman(String supplierLinkman) {
        this.supplierLinkman = supplierLinkman;
    }

    public String getSupplierPhone() {
        return supplierPhone;
    }

    public void setSupplierPhone(String supplierPhone) {
        this.supplierPhone = supplierPhone;
    }

    public String getSupplierTelephone() {
        return supplierTelephone;
    }

    public void setSupplierTelephone(String supplierTelephone) {
        this.supplierTelephone = supplierTelephone;
    }

    public String getSupplierBanknum() {
        return supplierBanknum;
    }

    public void setSupplierBanknum(String supplierBanknum) {
        this.supplierBanknum = supplierBanknum;
    }

    public String getSupplierAddress() {
        return supplierAddress;
    }

    public void setSupplierAddress(String supplierAddress) {
        this.supplierAddress = supplierAddress;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Supplier{" +
                "supplierId=" + supplierId +
                ", supplierName='" + supplierName + '\'' +
                ", supplierLinkman='" + supplierLinkman + '\'' +
                ", supplierPhone='" + supplierPhone + '\'' +
                ", supplierTelephone='" + supplierTelephone + '\'' +
                ", supplierBanknum='" + supplierBanknum + '\'' +
                ", supplierAddress='" + supplierAddress + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Supplier supplier = (Supplier) o;
        return Objects.equals(supplierId, supplier.supplierId) &&
                Objects.equals(supplierName, supplier.supplierName) &&
                Objects.equals(supplierLinkman, supplier.supplierLinkman) &&
                Objects.equals(supplierPhone, supplier.supplierPhone) &&
                Objects.equals(supplierTelephone, supplier.supplierTelephone) &&
                Objects.equals(supplierBanknum, supplier.supplierBanknum) &&
                Objects.equals(supplierAddress, supplier.supplierAddress) &&
                Objects.equals(status, supplier.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(supplierId, supplierName, supplierLinkman, supplierPhone, supplierTelephone, supplierBanknum, supplierAddress, status);
    }

    public Supplier(Long supplierId, String supplierName, String supplierLinkman, String supplierPhone, String supplierTelephone, String supplierBanknum, String supplierAddress, String status) {
        this.supplierId = supplierId;
        this.supplierName = supplierName;
        this.supplierLinkman = supplierLinkman;
        this.supplierPhone = supplierPhone;
        this.supplierTelephone = supplierTelephone;
        this.supplierBanknum = supplierBanknum;
        this.supplierAddress = supplierAddress;
        this.status = status;
    }

    public Supplier() {
    }
}
